package com.tz.farmer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smartPark.msframe.result.ResultEx;
import com.tz.farmer.model.FarmerKnowledge;
import com.tz.farmer.so.FarmerKnowledgeSo;

public interface WebFarmerKnowledgeService extends IService<FarmerKnowledge> {

    /**
     * 条件查询
     * @param so
     * @return
     */
    ResultEx geKnowledgeListByConditions(FarmerKnowledgeSo so);


    /**
     * 修改添加软删除
     * @param so
     * @return
     */
    ResultEx updateAddKnowledge(FarmerKnowledgeSo so,String token);

    /**
     * 单查
     * @param so
     * @return
     */
    ResultEx getOneDetails(FarmerKnowledgeSo so);

    /**
     * 硬删除一条记录
     * @param so
     * @return
     */
    ResultEx deleteOne(FarmerKnowledgeSo so);
}
